package com.github.caijh.mall.store.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.caijh.mall.store.model.StoreProduct;
import com.github.caijh.mall.store.model.StoreProductAttrResult;
import com.github.caijh.mall.store.request.StoreProductAttrValueRequest;

public interface StoreProductAttrResultService extends IService<StoreProductAttrResult> {

    void deleteByProductId(int productId, int type);

    /**
     * 根据商品属性值集合查询
     *
     * @param storeProductAttrResult 查询参数
     * @return 查询结果
     */
    List<StoreProductAttrResult> getByEntity(StoreProductAttrResult storeProductAttrResult);

    void updateStoreProductAttrResult(StoreProduct storeProduct, List<StoreProductAttrValueRequest> storeProductAttrValueRequests);

}
